package com.china.produce.controller;

import com.china.produce.enums.CommonEnum;
import com.china.produce.exception.BizException;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ClassName
 * @Author niujie
 * @Version
 * @Description
 * @CreateTime 2023/2/18
 */
@RestController
@RequestMapping("/exception")
public class ExceptionController {

    @RequestMapping("/test")
    public String test() {

        System.out.println("11111");

        throw new BizException(CommonEnum.SIGNATURE_NOT_MATCH);
    }
}
